package com.petRescueCenter.demo.pet.service;

import java.util.List;

import org.springframework.data.domain.Page;
import org.springframework.data.domain.Pageable;
import org.springframework.data.jpa.domain.Specification;

import com.petRescueCenter.demo.pet.entity.Pet;
import com.petRescueCenter.demo.pet.entity.dto.PetDTO;

public interface IPetService {
	public Pet save(Pet entity);

	public Pet findById(Long id);

	public boolean existsById(Long id);

	public long count();

	public void deleteById(Long id);

	public void deleteAll(Long[] ids);

	public Page<PetDTO> findAll(Specification<Pet> spec, Pageable pageable);

	public boolean existsByName(String name);

	public Pet findByName(String name);

	public List<String> getImg();

}
